<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>首页</title>
	<#include "../../commonUse.html"/>
</head>

<body>

    <div class="smart-body">
        <div class="smart-border1px">
            <ul class="smart-top_tabs clearfix">
                <li class="smart-top_tabitem active">电子合同</li>
                <li class="smart-top_tabitem">上传纸质合同</li>
            </ul>
            <form action="" class="layui-form layui-form-pane">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">工人姓名</label>
                        <div class="layui-input-inline">
                            <input type="text" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">工号</label>
                        <div class="layui-input-inline">
                            <input type="text" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">合同有效期</label>
                        <div class="layui-input-inline">
                            <input type="text" placeholder="" autocomplete="off" class="layui-input">
                        </div>
                        <div class="layui-form-mid">-</div>
                        <div class="layui-input-inline">
                            <input type="text" placeholder="" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width:120px;">选择合同期限</label>
                        <div class="layui-input-inline">
                            <select class="smart-body_select" name="" id="">
                                <option value="">一年</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width:130px;">上传合同扫描件</label>
                    <div class="layui-input-inline">
                        <input type="file" id="contract" name="file" class="layui-upload-file">
                    </div>
                </div>
            </form>
        </div>
    </div>

</body>
<script>
    layui.upload({
        url: '/test/upload.json',
        elem: '#contract', //指定原始元素，默认直接查找class="layui-upload-file"
        method: 'get', //上传接口的http类型
        success: function (res) {
            
        }
    });
    tabStyleTurn('.smart-top_tabitem');
</script>

</html>